package com.link.base.base.stocksellstorage.service;


import com.link.base.base.stocksellstorage.model.Stocktaking;
import com.link.core.basic.service.BasicService;

/**
 * @author 程厚霖
 * @date 2018-08-01
 */
public interface StocktakingService extends BasicService<Stocktaking> {

    /**
     * 提交盘点单
     *
     * @param entity
     * @throws Exception
     */
    public void commit(Stocktaking entity) throws Exception;

    /**
     * 开始盘点
     *
     * @param stocktaking
     * @throws Exception
     */
    void beginCalculating(Stocktaking stocktaking) throws Exception;

    /**
     * 插入头行
     *
     * @param entity
     * @return
     * @throws Exception
     */
    Stocktaking upsertHeadAndLine(Stocktaking entity) throws Exception;
}
